home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet multimedia / Grafika i zdjecia / Edytory grafiki rastrowej i wektorowej / Inscape 0.44.1 / Inkscape-0.44.1-1.win32.exe / share / extensions / fig2svg.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2006-09-06  |  236b  |  11 lines

  1. #! /bin/sh
  2. rc=0
  3. TMPDIR="${TMPDIR-/tmp}"
  4. TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/tmp-fig$$.svg"`
  5.  
  6. fig2dev -L svg "$1" "${TEMPFILENAME}" > /dev/null 2>&1 || rc=1
  7.  
  8. cat < "${TEMPFILENAME}" || rc=1
  9. rm -f "${TEMPFILENAME}"
  10. exit $rc
  11.